<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head >
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:href="@{/local/css/orders.css}" rel="stylesheet">
</head>

<body>

<div id="top" th:include="top.html::top"></div>

<div id="middle">
    <div id="left" th:include="left.html::left"></div>
    <div id="right">
        <div id="msg" th:text="${msg}"></div>
        <hr>
        <input type="button" value="返回" onclick="javascript:history.back()">
        <table>
            <tr>
                <th>订单详情ID</th>
                <th>订单ID</th>
                <th>商品ID</th>
                <th>订单数量</th>
                <th>评价</th>
                <th>评价时间</th>
                <th>操作</th>
            </tr>
            <tr th:each="orderdetail,stat:${orderdetail}" th:class="${stat.odd}?'bg2':''">
                <td th:text="${orderdetail.getOdid()}"></td>
                <td th:text="${orderdetail.getOid()}"></td>
                <td th:text="${orderdetail.getGdid()}"></td>
                <td th:text="${orderdetail.getOdnum()}"></td>
                <td th:text="${orderdetail.getDevalution}"></td>
                <td th:text="${#calendars.format(orderdetail.getOdtime(),'yyyy-MM-dd')}"></td>
                <td>
                    <a th:href="@{/admin5/delOrderDetail/} + ${orderdetail.getOid()}">删除</a>
                    <a th:href="@{/admin5/orderdetail/} + ${orderdetail.getOid()}">编辑</a>
                </td>
            </tr>

        </table>



    </div>
</div>

<div id="bottom" th:include="bottom.html::bottom"></div>

</body>
</html>